home *** CD-ROM | disk | FTP | other *** search
Makefile | 1990-05-18 | 1.2 KB | 44 lines |
- FTDIR=../
-
- PARAMS=-DPROFILE -DPARANOID
- PG=-pg
- INC=$(FTDIR)/include
- BIN=$(FTDIR)/bin
- DIR=$(FTDIR)/lib
- CRT=$(DIR)/crt0.o
- LIB=$(DIR)/thread_dp.a
-
- CFLAGS = -c -g $(PARAMS) $(PG) -I$(INC)
- LDFLAGS=-h -Z0200000 -X
-
-
- HDRS=$(INC)/synch.h $(INC)/thread.h $(INC)/quartzcommon.h
-
- fasttest.p:& fasttest.o dummy.o $(CRT) $(LIB)
- ld $(LDFLAGS) $(CRT) fasttest.o dummy.o $(LIB) -lpps -lseq -lc_p -o fasttest
- $(BIN)/munge -i fasttest -o fasttest.p
-
- bench.p:& bench.o $(CRT) $(LIB)
- ld $(LDFLAGS) $(CRT) bench.o $(LIB) -lpps -lseq -lc_p -o bench
- $(BIN)/munge -i bench -o bench.p
-
- qsort.p:& qsort.o $(CRT) $(LIB)
- ld $(LDFLAGS) $(CRT) qsort.o $(LIB) -lpps -lseq -lc_p -o qsort
- $(BIN)/munge -i qsort -o qsort.p
-
- clean:
- rm -rf bench.p bench qsort.p qsort fasttest.p fasttest quartz *.o quartzData.c procNames.c
-
- # This is common for all programs
- quartz:& procNames.o quartzData.o $(DIR)/quartz.o
- cc -g procNames.o quartzData.o $(DIR)/quartz.o -lm -lX11 -o quartz
-
- bench.o: bench.c $(HDRS)
- qsort.o: qsort.c $(HDRS)
- fasttest.o: fasttest.c $(HDRS)
-
- lint:
- lint -hbu $(PARAMS) -DLINT -I$(INC) bench.c $(DIR)/llib-lthread.ln
- lint -hbu $(PARAMS) -DLINT -I$(INC) qsort.c $(DIR)/llib-lthread.ln
- lint -hbu $(PARAMS) -DLINT -I$(INC) fasttest.c $(DIR)/llib-lthread.ln
-